<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>login</title>
<link rel="stylesheet" type="text/css" href="/static/admin/login/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/login/css/demo.css" />
<!--必要样式-->
<link rel="stylesheet" type="text/css" href="/static/admin/login/css/component.css" />
<!--[if IE]>
<script src="/static/admin/login/js/html5.js"></script>
<![endif]-->
</head>
<body>
		<div class="container demo-1">
			<div class="content">
				<div id="large-header" class="large-header">
					<canvas id="demo-canvas"></canvas>
					<div class="logo_box">
						<h3>GLOBALTALK 管理平台</h3>
							<div class="input_outer">
								<span class="u_user"></span>
								<input name="login_number" class="text" style="color: #FFFFFF !important" type="text" placeholder="请输入账号" autocomplete="off">
							</div>
							<div class="input_outer">
								<span class="us_uer"></span>
								<input name="password" class="text" style="color: #FFFFFF !important; position:absolute; z-index:100;"value="" type="password" placeholder="请输入密码" autocomplete="off">
							</div>
							<div style="margin-top: 2rem" class="mb2" id="submit">
							<a class="act-but submit" href="javascript:;">登录</a>
							</div>
					</div>
				</div>
			</div>
		</div><!-- /container -->
		<script src="/static/admin/login/js/TweenLite.min.js"></script>
		<script src="/static/admin/login/js/EasePack.min.js"></script>
		<script src="/static/admin/login/js/rAF.js"></script>
		<script src="/static/admin/login/js/demo-1.js"></script>
		<div style="text-align:center;">
</div>
	</body>
</html>
<script type='text/javascript' src='/static/admin/layui/layui.all.js' charset='utf-8'></script>
<script type='text/javascript' src='/static/common/js/jquery.min.js' charset='utf-8'></script>
<script>
	$('#submit').click(function () {
        var login_number = $('input[name="login_number"]').val();
        var password = $('input[name="password"]').val();
    	if(login_number.length == 0){
            layer.msg('请输入账号',{time:1000});
            return false;
		}
        if(password.length == 0){
            layer.msg('请输入密码',{time:1000});
            return false;
        }
        $.ajax({
            url:'/admin/login/loginIn',
            data:{login_number:login_number,password:password},
            dataType:'json',
            type:'post',
            success:function(val){
                if(val.code ==200){
					window.location.href='/admin/menu/index';
                }
                if(val.code ==400){
                    layer.msg(val.msg);
                }
            },
        });
    });



</script>